﻿Public Class Custom_DGVComboBoxCol
    Inherits DataGridViewComboBoxColumn
    Public Event ColumnSelectedVaueChange As Custom_DGVcomboBoxColEventHandler

    Protected Overloads Sub Paint(ByVal [source] As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer, ByVal colNum As Integer, ByVal CellValue As Object)
        Dim e As Custom_DGVcomboBoxColEventArgs = Nothing
        'col = DataGridView.Columns.IndexOf(Me)
        e = New Custom_DGVcomboBoxColEventArgs(rowNum, colNum, CellValue)
        RaiseEvent ColumnSelectedVaueChange(Me, e)

        If Val(e.CurrentCellValue) < 0 Then
            MsgBox("Qty Do not null", MsgBoxStyle.Critical)
            DataGridView.Rows(rowNum).Cells(colNum).Selected = True
        End If
    End Sub
End Class
